﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TX.Core;
using TX.Core.Security;
using TX.Passport.Models;
using TX.Passport.Repositories;

namespace TX.Passport.Persist
{
    /// <summary>
    /// 职位存储库
    /// </summary>
    public class PositionRepository : PassportRepository<Position>, IPositionRepository
    {   
        
        public IQueryable<Position> GetPositions(QueryOption<Position> option = null)
        {
            return this.PersistService.GetQuery(option);
        }

        public Position AddPosition(Position model)
        {
            return this.PersistService.Add(model);
        }

        public void RemovePosition(Position model)
        {
            this.PersistService.Remove(model);
        }

        public void UpdatePosition(Position model)
        {
            this.PersistService.Update(model);
        }
    }
}